PEExportPrintWindow

Use PEExportPrintWindow to export the report displayed in the preview window to disk file or e-mail. This function can be used in a Custom-Print Link to enable the user to preview the report in the preview window, and then, if everything looks satisfactory, to export the report to disk file or e-mail in response to a user event. You can use PEExportPrintWindow to replace the Export button when PEShowPrintControls, disables the Print Control buttons.

C Syntax
BOOL CRPE_API PEExportPrintWindow (
        short printJob,
        BOOL toMail,
        BOOL waitUntilDone );
Parameters

printJob

Specifies the print job that you want to export to a disk file or to e-mail.

toMail

Boolean value indicates whether or not the function is to export to e-mail.

waitUntilDone

BOOL. Reserved. This parameter must always be set to TRUE.

Returns
VB Syntax

VB Sample Code for Previewing a Report

Declare Function PEExportPrintWindow Lib "crpe32.dll" (
    ByVal printJob As Integer, ByVal ToMail As Integer,
    ByVal WaitUntilDone As Integer ) As Integer
Delphi Syntax
function PEExportPrintWindow (
    printJob: Word;
    toMail: Bool;
    waitUntilDone: Bool
    ): Bool stdcall;
dBASE for Windows Syntax

EXTERN CLOGICAL PEExportPrintWindow (CWORD, CLOGICAL, CLOGICAL) CRPE.DLL



Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com